<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .box {
            width: 600px;
            margin: 40px auto;
            font-size: 12px;
        }

        .list_row {
            display: table-row;
            overflow: hidden;
            text-align: center;
        }

        .list_cell {
            display: table-cell;
            width: 30%;
            margin-bottom: -100px;
            padding: 1.6%;
            background-color: #f5f5f5;
        }

        .list_center {
            background-color: #f0f3f9;
        }

        #flex-box {
            width: 400px;
            margin: 0 auto;
            display: flex;
            justify-content: center;
            align-items: flex-start;
        }

        #flex-box div {
            width: 50%;
        }

        .rkgl_wpxxi_rkcheck {
            width: 60px !important;
        }

        .yf-view-info-ypxh {
            width: 56px;
        }

        .yf-view-info-ypbh {
            width: 86px;
        }

        .yf-view-info-ypmc {
            flex: 1;
        }

        .yf-view-info-ypgg {
            width: 86px;
        }

        .yf-view-info-sccj {
            flex: 1;
        }

        .yf-view-info-rksl,.yf-view-info-ypph,.yf-view-info-rkjg {
            width: 80px;
        }
        .yf-view-info-scrq,.yf-view-info-yxrq{
            width:100px;
        }
        .yf-view-info-czsj {
            width: 128px;
        }

        .yf-view-info-bill {
            width: 100px;
        }
    </style>
</head>

<body>

    <button>点击</button>
    <script src="./jquery.js"></script>
    <script>
        $("button").on("click", function () {
            console.log("click")
            $.ajax({
                type: "get",
                data: {
                    "yf_hzid": "3"
                },
                url: "http://192.168.1.115:8080/yunsu/common/test.json",
                dataType: "json",
                cache: false,
                success: function (data, status) {
                    console.log(data)
                }
            })

        })
    </script>
    <!-- 入库记录打印入口显示——时间、类型筛选 -->
    <script type="text/template" id='tpl_rkjl_bytime_info'>
        <div style="padding:20px;">
            <p class="top_title_warpper" style="margin-bottom:20px;display: flex;justify-content: space-between;">
                <span style="position: relative;">
                    <span style="line-height: 34px;">操作时间：</span>
                    <span class="ruku_time_select" id="search_date_sel" style="background: url(image/ruku/time.png) no-repeat 228px center;width:260px;display:inline-block;height:35px;line-height:31px;">
                        <span style="position: relative; z-index: 999;">
                            <input type="text" name="ruku_begin_date1" readonly="" style="top:0;width:106px;" class="form_datetime datetime_now noBorder nobg"
                                id="begin_date_ipt">
                        </span>
                        <i class="i-color-d7">-</i>
                        <span style="position: relative; z-index: 999;">
                            <input type="text" name="ruku_end_date1" readonly="" style="top:0;width:106px;" class="form_datetime noBorder nobg datetime_now"
                                id="end_date_ipt">
                        </span>
                    </span>
                    <span style="position: absolute;right:-162px;top:2px; z-index: 999;width:116px;">
                        <select class="select_date_search_stock" id="select_date_search_stock" style="width:116px;">
                            <option value="0">当天</option>
                            <option value="1">本周</option>
                            <option value="2">本月</option>
                            <option value="3">本年</option>
                        </select>
                    </span>
                    <span style="position: absolute;right:-450px;top:2px; z-index: 999;">药品类别：
                        <select name="wplx" id="print_type_sel"></select>

                    </span>
                </span>
                <span class="pdjl_btn_sa cp" id="print_check_list" style="width:96px; height: 36px;line-height:36px;border-radius: 20px;background-color: #45C566;color: #fff;text-align: center;">
                    <i class="iconfont" style="font-weight:500;font-size:16px;"></i>&nbsp;打印
                </span>
            </p>

            <ul>
                <li style="text-align: center;display: flex;justify-content: space-between;" class="list-item-title drug-info-title history_stock">
                    <th class="rkgl_wpxxi_rkcheck cp check_active" id="selectAllthPrint">
                        <input type="checkbox" name="" id="selectAllIptPrint" style="display:none;">
                    </th>
                    <td class="print_list">{{i+1}}</td>
                    <td class="print_list">{{v.ypbh}}</td>
                    <td class="print_list">{{v.ypmc}}</td>
                    <td class="print_list">{{v.ypgg}}</td>
                    <td class="print_list">{{v.sccj}}</td>
                    <td class="print_list">{{v.rkjg}}</td>
                    <td class="print_list">{{v.rksl}}</td>
                    <td class="print_list">{{v.ypph}}</td>
                    <td class="print_list">{{v.yxrq}}</td>
                    <td class="print_list">{{v.czsj}}</td>
                    <td class="print_list">{{v.bill}}</td>
                    
                </li>
                <li>
                    <ul style="max-height:492px;padding-right:2px;overflow-y:auto;" id="printRkjlView">
                        {{each result v i}}
                        <li style="text-align: center;display: flex;justify-content: space-between;" class="list_jl_view_1503 ">
                            <span class="rkgl_wpxxi_rkcheck cp check_active">
                                <input type="checkbox" id="checkPrint{{i+10}}Sure" name="rkjl" style="display:none;" class="check-print-sure">
                            </span>
                            <span class="yf-view-info-ypxh">{{i+1}}</span>
                            <span class="yf-view-info-ypbh">{{v.yf_drug_number}}</span>
                            <span class="yf-view-info-ypmc">{{v.yf_drug_name}}</span>
                            <span class="yf-view-info-ypgg">{{v.tx_spec}}</span>
                            <span class="yf-view-info-sccj">{{v.yf_drug_changjia}}</span>
                            <span class="yf-view-info-rkjg">{{v.yf_in_price}}</span>
                            <span class="yf-view-info-rksl">{{v.yf_in_operation_num}}</span>
                            <span class="yf-view-info-ypph">{{v.yf_in_batch}}</span>
                            <span class="yf-view-info-yxrq">{{v.yf_valid_date}}</span>
                            <span class="yf-view-info-czsj">{{(v.yf_in_operator_time).substr(0,16)}}</span>
                            <span class="yf-view-info-bill">{{v.yf_in_bill}}</span>
                        </li>
                        {{/each}}
                    </ul>
                </li>
            </ul>
        </div>

    </script>
    <script>
        function getNowFormatDate () {
			var date = new Date();
			var seperator1 = "-";
			var seperator2 = ":";
			var month = date.getMonth() + 1;
			var strDate = date.getDate();
			if (month >= 1 && month <= 9) {
				month = "0" + month;
			}
			if (strDate >= 0 && strDate < 10) {
				strDate = "0" + strDate;
			}
			var h = date.getHours();
			if (h >= 0 && h <= 9) {
				h = "0" + h;
			}
			var m = date.getMinutes();
			if (m >= 0 && m <= 9) {
				m = "0" + m;
			}
			var s = date.getSeconds();
			if (s >= 0 && s <= 9) {
				s = "0" + s;
			}

			var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate +
				" " + h + seperator2 + m +
				seperator2 + s;
			console.log(currentdate)
			return currentdate;
		}
    </script>
</body>

</html>